package com.cy.controller;


import org.springframework.web.bind.annotation.*;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/provider/")
public class RestProviderController {
    @DeleteMapping("{id}")
    public String dodeleteById(@PathVariable Integer... id){
        return Arrays.toString(id)+"is delete";
    }

    @PostMapping
    public Map<String,Object> doCreate(@RequestBody Map<String,Object>  map){
        HashMap<String,Object> hashMap = new HashMap();
        map.put("status", 200);
        map.put("message", "inster ok");
        return map;
    }

    @PutMapping
    public Map<String,Object> doUpdata(@RequestBody Map<String,Object>  map){
        HashMap<String,Object> hashMap = new HashMap();
        map.put("status", 200);
        map.put("message", "updata ok");
        return map;
    }



}
